package com.owbtgad.common.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.tencent.mmkv.MMKV;


public class GPlaySourceReferrerReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        try {
            MMKV.initialize(context);
            String rawReferrer = intent.getStringExtra("referrer");
            if (null == rawReferrer) {
                return;
            }else {
                MMKV.defaultMMKV().putString("referrer", rawReferrer);
            }
        }catch (Exception e){
            e.printStackTrace();
        }


    }
}
